#ifndef FGE_TEXTUREDICTIONARY_HPP
#define FGE_TEXTUREDICTIONARY_HPP

#include <string>
#include <map>

#include "Math.hpp"

namespace fge
{

struct TextureRegion
{
	Rect rect;
	Vector2 origin;
};

class TextureDictionary
{
public:
	static TextureDictionary* FromFile(const std::string &filename);

	bool ContainsTexture(const std::string &textureName);

	TextureRegion& GetRegion(const std::string &file);

private:
	TextureDictionary();

	std::map<std::string, TextureRegion> dictionary;
};

}

#endif//FGE_TEXTUREDICTIONARY_HPP
